<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box1 {
        width: 200px;
        height: 200px;
        background-color: orange;
        /* 设置哪个属性需要过渡效果 */
        /* transition-property: width, height, background-color; */
        /* 设置每个属性过渡时长 */
        /* transition-duration: 1s, 4s, 8s; */

        /*设置所有可以应用过渡效果的属性，都过渡 */
        transition-property: all;
        /* 每个过渡属性都是1秒的过渡时间 */
        transition-duration: 1s;
      }
      .box1:hover {
        width: 400px;
        height: 400px;
        background-color: skyblue;
      }
    </style>
  </head>
  <body>
    <div class="box1"></div>
    <p>transition</p>
  </body>
</html>
